package cn.t.persistence.mapper.user;

import cn.t.persistence.entity.user.RoleResourcePO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * @author l
 */
public interface RoleResourceMapper extends BaseMapper<RoleResourcePO> {

    @Delete("delete from t_role_resource where role_id = #{roleId}")
    boolean removeByRoleId(Long roleId);


    @Delete("delete from t_role_resource where resource_id = #{resourceId}")
    boolean removeByResourceId(Long resourceId);
}
